7.5
HIGH CVSS 3.1
CVE-2026-29795
stellar-xdr: `StringM::from_str` bypasses max length validation
Description

stellar-xdr is a library and CLI containing types and functionality for working with Stellar XDR. Prior to version 25.0.1, StringM::from_str does not validate that the input length is within the declared maximum (MAX). Calling StringM::<N>::from_str(s) where s is longer than N bytes succeeds and returns an Ok value instead of Err(Error::LengthExceedsMax), producing a StringM that violates its length invariant. This affects any code that constructs StringM values from string input using FromStr (including str::parse), and relies on the type's maximum length constraint being enforced. An oversized StringM could propagate through serialization, validation, or other logic that assumes the invariant holds. This issue has been patched in version 25.0.1.

INFO

Published Date :

March 6, 2026, 9:16 p.m.

Last Modified :

March 18, 2026, 6:46 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-29795 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Stellar stellar-xdr
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
Solution
Update stellar-xdr to version 25.0.1 to fix StringM length validation issues.
  • Update stellar-xdr library to version 25.0.1.
  • Validate StringM construction in affected code.
  • Test serialization and validation logic.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-29795.

URL Resource
https://github.com/stellar/rs-stellar-xdr/commit/1f840013c3e2fca0321fb844b048afa01d10dda6 Patch
https://github.com/stellar/rs-stellar-xdr/issues/499 Issue Tracking
https://github.com/stellar/rs-stellar-xdr/pull/500 Issue Tracking Patch
https://github.com/stellar/rs-stellar-xdr/security/advisories/GHSA-x57h-xx53-v53w Mitigation Patch Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-29795 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-29795 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-29795 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Mar. 18, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
    Added CPE Configuration OR *cpe:2.3:a:stellar:stellar-xdr:*:*:*:*:*:rust:*:* versions up to (excluding) 25.0.1
    Added Reference Type GitHub, Inc.: https://github.com/stellar/rs-stellar-xdr/commit/1f840013c3e2fca0321fb844b048afa01d10dda6 Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/stellar/rs-stellar-xdr/issues/499 Types: Issue Tracking
    Added Reference Type GitHub, Inc.: https://github.com/stellar/rs-stellar-xdr/pull/500 Types: Issue Tracking, Patch
    Added Reference Type GitHub, Inc.: https://github.com/stellar/rs-stellar-xdr/security/advisories/GHSA-x57h-xx53-v53w Types: Mitigation, Patch, Vendor Advisory
  • New CVE Received by [email protected]

    Mar. 06, 2026

    Action Type Old Value New Value
    Added Description stellar-xdr is a library and CLI containing types and functionality for working with Stellar XDR. Prior to version 25.0.1, StringM::from_str does not validate that the input length is within the declared maximum (MAX). Calling StringM::<N>::from_str(s) where s is longer than N bytes succeeds and returns an Ok value instead of Err(Error::LengthExceedsMax), producing a StringM that violates its length invariant. This affects any code that constructs StringM values from string input using FromStr (including str::parse), and relies on the type's maximum length constraint being enforced. An oversized StringM could propagate through serialization, validation, or other logic that assumes the invariant holds. This issue has been patched in version 25.0.1.
    Added CVSS V3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
    Added CWE CWE-770
    Added Reference https://github.com/stellar/rs-stellar-xdr/commit/1f840013c3e2fca0321fb844b048afa01d10dda6
    Added Reference https://github.com/stellar/rs-stellar-xdr/issues/499
    Added Reference https://github.com/stellar/rs-stellar-xdr/pull/500
    Added Reference https://github.com/stellar/rs-stellar-xdr/security/advisories/GHSA-x57h-xx53-v53w
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.